﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleFrame.aspx.cs" Inherits="System_Role_RoleFrame" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript">
    <!--
        function SelectAllCheckBox() {
            var form = document.forms[0];
            for (i = 0; i < form.elements.length; i++) {
                if (form.elements[i].checked == false) {
                    j = 0;
                }
                else {
                    j = 1;
                }
            } if (j == 0) {
                for (i = 0; i < form.elements.length; i++) {
                    form.elements[i].checked = true;
                }
            }
            else {
                for (i = 0; i < form.elements.length; i++) {
                    form.elements[i].checked = false;
                }
            }
        }
    //-->
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="1" style="background-color: #b5d6e6; width: 100%;
                        border: 0px;">
                        <tr style="background-color: #FFFFFF; height: 28px;">
                            <td style="width: 80%; padding-right: 4px;" align="right">
                                角色列表：<asp:DropDownList ID="ddlGroup" runat="server" DataTextField="vGroupName" DataValueField="vGroupNo"
                                    OnSelectedIndexChanged="ddlGroup_SelectedIndexChanged" AutoPostBack="true">
                                </asp:DropDownList>
                            </td>
                            <td style="padding-left: 4px;">
                                <asp:ImageButton ImageUrl="../../images/btn/affrimsave.JPG" Width="82" ID="ibtnSave"
                                    runat="server" OnClick="ibtnSave_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <div style="margin-left: 0px; margin-top: 3px; width: 99.5%; height:430px; overflow-x: auto;
                        overflow-y: auto;">
                        <asp:GridView ID="gvMenu" runat="server" AutoGenerateColumns="False" Width="98%"
                            BorderWidth="1" BorderColor="#b5d6e6" CellSpacing="0" CellPadding="0" DataKeyNames="id">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <input id="hchkSelect" type="checkbox" onclick="SelectAllCheckBox()" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkSelect" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle Width="3%" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="vText" HeaderText="菜单名称">
                                    <ItemStyle Width="20%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="iNode" HeaderText="本节点ID">
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="iParent" HeaderText="父节点ID">
                                    <ItemStyle Width="5%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="vUrl" HeaderText="连接地址">
                                    <ItemStyle Width="30%" HorizontalAlign="Left" />
                                </asp:BoundField>
                            </Columns>
                            <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" />
                            <RowStyle CssClass="gvRow" HorizontalAlign="Center" />
                        </asp:GridView>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

